{template "content","header"}
<link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
<script language="javascript" type="text/javascript" src="{JS_PATH}jquery.sgallery.js"></script>
<!--main-->
<div class="main_tab">
	{template "content","left"}
	<div class="tab">
		<div class="contact_left">
			<div class="contact_left_title"><span>联系我们</span></div>
			<div class="contact_left_content">{$contact}</div>
			<div class="contact_left_title"><span>公司证件</span></div>
			<div class="contact_left_content">{$zj}</div>
			{pc:block pos="page_gg" siteid="$siteid"}{/pc}
			<div class="contact_left_title"><span>服务网点</span></div>
			<div class="contact_left_content">
			{pc:content action="relation" relation="$relation" id="$id" catid="$catid" num="30" keywords="$rs[keywords]"}
              {if $data}
                    <ul>
                        {loop $data $r}
                            <li>·<a href="{$r[url]}">{$r[title]}</a></li>
                        {/loop}
                    </ul>
              {/if}
           {/pc}
			</div>
		</div>
		<div class="contact_right">
			{template "content","nav"}
			<div class="pagenav">{$dangqian}{$title}</div>
		    <div class="contact_right_content">
				<div class="contact_right_content_title"></div>
				{if $images}
				<div class="contact_right_content_c_images">
				{loop $images $v}
                	<a href="javascript:preview({$n}, '{$v['alt']}','{$v[url]}')"><img src="{thumb($v['url'],200, 119)}" alt="{$v['alt']}" /></a>
				{/loop}
				</div>
				{/if}
				{$content}
			</div>
		</div>
		<div class="clear"></div>
	</div>
</div>
<script language="JavaScript" src="/api.php?op=count&id={$id}&modelid={$modelid}"></script>

<script type="text/javascript"> 
<!--
function preview(id, name,filepath) {
	if(IsImg(filepath)) {
		window.top.art.dialog({title:'预览',fixed:true, content:'<img src="'+filepath+'" onload="$(this).LoadImage(true, 800, 500,\'http://www.hldkw.cn/statics/images/s_nopic.gif\');"/>'});	
	} else {
		window.top.art.dialog({title:'预览',fixed:true, content:'<a href="'+filepath+'" target="_blank"/><img src="http://www.hldkw.cn/statics/images/admin_img/down.gif">单击打开</a>'});
	}
}
 
function IsImg(url){
	  var sTemp;
	  var b=false;
	  var opt="jpg|gif|png|bmp|jpeg";
	  var s=opt.toUpperCase().split("|");
	  for (var i=0;i<s.length ;i++ ){
	    sTemp=url.substr(url.length-s[i].length-1);
	    sTemp=sTemp.toUpperCase();
	    s[i]="."+s[i];
	    if (s[i]==sTemp){
	      b=true;
	      break;
	    }
	  }
	  return b;
}
//-->
</script>
{template "content","footer"}